#include "endpage.h"
#include "ui_endpage.h"
#include<QLabel>

endpage::endpage(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::endpage)
{
    ui->setupUi(this);
    this->setFixedSize(720,660);
    QPixmap Pixmap(":/res/bg.png");
    ui->background->setGeometry(0, 0, this->geometry().width(), this->geometry().height());
    ui->background->setPixmap(Pixmap);
    ui->background->setScaledContents(true);



}

endpage::~endpage()
{
    delete ui;
}

void endpage::setScore(int score)
{
    QFont font("Microsoft Himalaya",48);
    ui->scorelabel->setFont(font);
    QPalette palette;
    palette.setColor(QPalette::WindowText, QColor("#e1e1e1"));
    ui->scorelabel->setPalette(palette);
    ui->scorelabel->setNum(score);
}
